package com.edu.dao;

import com.edu.data.Page;
import com.edu.data.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    int insert(Product record);

    int insertSelective(Product record);

    List<Product> getProductsByCategoryLevelTwo(@Param("id") Long id,@Param("page") Page page);

    long getProductRowCountByCategoryLevelTwo(@Param("categoryId") Long categoryId);

    Product getProducts(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    Product findProductById(long categoryId);

    void deleteByid(int id);

    List<Product> findProduct(@Param("fileName") String fileName,@Param("epc_id") Long epc_id);
}